#-------------------------------------------------------------------
# This file is part of the CMake build system for MP Galaxy
#     (Multi Player Galaxy Game)
# For the latest info, see http://www.MPG3d.org/
#
# The contents of this file are placed in the public domain. Feel
# free to make use of it in any way you like.
#-------------------------------------------------------------------

####################################
#  MP-Galaxy BUILD SYSTEM 
#  directory: Modules/Gfx
####################################

PROJECT(GfxOgre)

set (HEADER_FILES
	Consumer.h
	GfxManagerThread.h
	Manager.h
	Producer.h
	Types.h
)
set (SOURCE_FILES
	Consumer.cpp
	GfxManagerThread.cpp
	Manager.cpp
	Producer.cpp
)

set (GUI_SOURCE_FILES
	Gui/Injector.h
	Gui/Injector.cpp
	Gui/Menu.h
	Gui/Menu.cpp
	Gui/MenuFactory.h
	Gui/MenuFactory.cpp
	Gui/MenuHelper.h
	Gui/MenuHelper.cpp
	Gui/MenuManager.h
	Gui/MenuManager.cpp
)

set (MENU_SOURCE_FILES
	Menu/CreditsMenu.h
	Menu/CreditsMenu.cpp
	Menu/MainMenu.h
	Menu/MainMenu.cpp
	Menu/SettingsMenu.h
	Menu/SettingsMenu.cpp
)

set (ENGINE_GALAXY_FILES
	Engine/Galaxy/GalaxyConsumer.h
	Engine/Galaxy/GalaxyConsumer.cpp
	Engine/Galaxy/Planet.h
	Engine/Galaxy/Planet.cpp
	Engine/Galaxy/StarField.h
	Engine/Galaxy/StarField.cpp
)

source_group (gui FILES ${GUI_SOURCE_FILES})
source_group (menu FILES ${MENU_SOURCE_FILES})
source_group (engine\\galaxy FILES ${ENGINE_GALAXY_FILES})

set (LIBRARIES
	Util
	CoreMediator
	CoreKernel
	CoreInterface
	${CEGUI_LIBRARIES} ${CEGUI_OGRE_LIBRARIES}
	${OGRE_LIBRARIES}
	${OIS_LIBRARIES}
)

message (STATUS "cegui libraries: ${CEGUI_LIBRARIES}")

include_directories (${MPG_SOURCE_DIR} ${OGRE_INCLUDE_DIR} ${CEGUI_INCLUDE_DIR})

add_library (GfxOgre STATIC ${HEADER_FILES} ${SOURCE_FILES} ${GUI_SOURCE_FILES} ${MENU_SOURCE_FILES} ${ENGINE_GALAXY_FILES})
#set_target_properties(GfxOgre PROPERTIES VERSION ${MPG_VERSION} SOVERSION ${MPG_VERSION_MAJOR})
#target_link_libraries(GfxOgre ${LIBRARIES})
